#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class ScholarInfo : Business.BusinessBase<ScholarInfo, int>
	{
		#region Fields and Properties

		private String schlCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String SchlCate
		{
			get { return schlCate; }
			set
			{
				if (value != schlCate)
				{
					MarkChanged("SchlCate");
					schlCate = value;
				}
			}
		}

		private String assPeerName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AssPeerName
		{
			get { return assPeerName; }
			set
			{
				if (value != assPeerName)
				{
					MarkChanged("AssPeerName");
					assPeerName = value;
				}
			}
		}

		private String assPeerCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AssPeerCode
		{
			get { return assPeerCode; }
			set
			{
				if (value != assPeerCode)
				{
					MarkChanged("AssPeerCode");
					assPeerCode = value;
				}
			}
		}

		private DateTime assDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime AssDate
		{
			get { return assDate; }
			set
			{
				if (value != assDate)
				{
					MarkChanged("AssDate");
					assDate = value;
				}
			}
		}

		private String degree = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Degree
		{
			get { return degree; }
			set
			{
				if (value != degree)
				{
					MarkChanged("Degree");
					degree = value;
				}
			}
		}

		private int term = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Term
		{
			get { return term; }
			set
			{
				if (value != term)
				{
					MarkChanged("Term");
					term = value;
				}
			}
		}

		private String yearNum = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String YearNum
		{
			get { return yearNum; }
			set
			{
				if (value != yearNum)
				{
					MarkChanged("YearNum");
					yearNum = value;
				}
			}
		}

		private String grade = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Grade
		{
			get { return grade; }
			set
			{
				if (value != grade)
				{
					MarkChanged("Grade");
					grade = value;
				}
			}
		}

		private String clsCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ClsCode
		{
			get { return clsCode; }
			set
			{
				if (value != clsCode)
				{
					MarkChanged("ClsCode");
					clsCode = value;
				}
			}
		}

		private String stdCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StdCode
		{
			get { return stdCode; }
			set
			{
				if (value != stdCode)
				{
					MarkChanged("StdCode");
					stdCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public ScholarInfo()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override ScholarInfo DataSelect(int id)
		{
			return Services.DALService.ScholarInfoService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.ScholarInfoService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.ScholarInfoService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.ScholarInfoService.Delete(this);
		}

		#endregion Base overrides
	}
}
